<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="resources/templates/mainTemplate.xhtml">
    
    <ui:param name="pagetitle" value="CHUMS - All Courses"/>
    
    <ui:define name="centerContent" class="turquaz"> 
        
        <p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  

        <p:dialog appendToBody="true" resizable="false" modal="true" widgetVar="statusDialog" header="Loading"   
                  draggable="false" closable="false">  
            <p:graphicImage value="resources/images/ajax-loader.gif" />
        </p:dialog> 
        
        <center>
            <h:form id="allCoursesFeed" prependId="false" >
                <p:fieldset legend="All Courses">    

                    <p:feedReader value="http://feeds.pheedo.com/OcwWeb/rss/new/mit-newcourses" var="feed">  
                        <h:outputText value="#{feed.title}" style="font-weight: bold"/>  
                        <br />  
                        <h:outputText value="#{feed.description.value}" escape="false"/>  
                        <p:separator />  
                    </p:feedReader>  
                </p:fieldset>    
                
            </h:form>
        </center>
        
        
     
    </ui:define>
    
</ui:composition>

